package com.yihubang.taobaokotlin.ui.fragment

import android.util.Log
import android.view.View
import com.yihubang.taobaokotlin.R
import com.yihubang.taobaokotlin.base.BaseFragment
import com.yihubang.taobaokotlin.view.InputNumberView

/*
 * class title: 
 * Author by RenChunLin, Email 18957806320@163.com, Date on 2021/5/10.
 * PS: Not easy to write code, please indicate.
 */
class OnSellFragment : BaseFragment() {
    override fun initView(rootView: View) {
        setUpState(State.SUCCESS)
        val inputNumberView: InputNumberView = rootView.findViewById(R.id.input_number_view)
        inputNumberView.setOnNumberChangeListener(object : InputNumberView.OnNumberChangeListener {
            override fun onNumberChange(value: Int) {
                Log.i("chen", "onNumberChange:$value")
            }
        })

        inputNumberView.setDefaultValue(2)
    }

    override fun getRootViewResId() = R.layout.fragment_on_sell
}